const express = require("express");
const router = express.Router();
const articleHandler = require("../router_handler/article");

router.get("/list", articleHandler.getArticleList);

router.get("/detail/:id", articleHandler.getArticleDetail);

router.post("/add", articleHandler.addArticle);

router.post("/edit", articleHandler.editArticle);

router.post("/like/:id", articleHandler.likeArticle);

router.post("/delete", articleHandler.deleteArticle);

module.exports = router;
